package com.elitedatai.mchtest.manage.model.entity;

import com.elitedatai.mchtest.common.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.persistence.*;
import java.io.Serializable;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "manage_device_firmware")
@Entity
public class DeviceFirmwareEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -12L;

    @Column(name = "firmware_id")
    private String firmwareId;

    @Column(name = "file_name")
    private String fileName;

    @Column(name = "firmware_version")
    private String firmwareVersion;

    @Column(name = "object_key")
    private String objectKey;

    @Column(name = "file_size")
    private Long fileSize;

    @Column(name = "file_md5")
    private String fileMd5;

    @Transient
    private String deviceName;

    @Column(name = "release_note")
    private String releaseNote;

    @Column(name = "release_date")
    private Long releaseDate;

    @Column(name = "status")
    private Boolean status;

    @Column(name = "workspace_id")
    private String workspaceId;

    @Column(name = "user_name")
    private String username;

}
